# File: ally_healer_sacrifice.gd
# 治疗者技能 - 殉难精神
# 治疗他人时自愈
extends TechnologyResource
class_name AllyHealerSacrifice

var self_heal_ratio = 0.5 # 自愈比例

func _init() -> void:
	super()
	display_name = tr("tech.healer.sacrifice.name")
	description = tr("tech.healer.sacrifice.desc").format({
		"ratio": Tools.percent_str(self_heal_ratio)
	})
	GlobalSignal.gs_ally_get_heal.connect(_on_get_heal)

# 处理治疗事件
func _on_get_heal(healer: Unit, _target: Unit, heal: Heal):
	pass
